package yh.thread;

import org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.annotation.Resource;
import javax.sql.DataSource;

/**
 * 项目整合多数据源及sharding-jdbc接入
 * @author: zyh
 * @date: 2024/12/12 18:29
 **/
@MapperScan("yh.thread.**.dao")
@EnableTransactionManagement
@SpringBootApplication//(exclude = {DruidDataSourceAutoConfigure.class})
public class DataSourceCollectApplication {

    public static void main(String[] args) {
        SpringApplication.run(DataSourceCollectApplication.class,args);
    }

//    @Resource
//    private ShardingSphereDataSource shardingSphereDataSource;


}
